package com.zmn.plat.common.dictionary;

import java.util.ArrayList;
import java.util.List;

import com.google.common.collect.Lists;
import com.zmn.common.dictionary.DictModel;
import com.zmn.common.dto.VtDTO;
import com.zmn.common.utils.string.StringUtil;
import com.zmn.plat.common.constant.OrderTrackConstants;

/**
 * @author tanbiao
 * @description
 * @modifier
 * @since 2020/11/23 9:36
 **/
public class OrderTrackDict {
    /**
     * 描述: 跟单等级
     *
     * @return java.util.List<com.zmn.common.dictionary.DictModel>
     * @author tanbiao
     * @since 2020/11/23
     **/
    public static List<DictModel> listOrderTrackLevel() {
        ArrayList<DictModel> arrayList = Lists.newArrayListWithExpectedSize(4);
        arrayList.add(new DictModel(OrderTrackConstants.ORDER_TRACK_LEVEL_ONE, "一级"));
        arrayList.add(new DictModel(OrderTrackConstants.ORDER_TRACK_LEVEL_TWO, "二级"));
        arrayList.add(new DictModel(OrderTrackConstants.ORDER_TRACK_LEVEL_THREE, "三级"));
        arrayList.add(new DictModel(OrderTrackConstants.ORDER_TRACK_LEVEL_FOUR, "四级"));
        return arrayList;
    }

    /**
     * 描述: 跟单等级
     *
     * @auther tanbiao
     * @since 2020/11/23
     */
    public static String getOrderTrackLevel(int level) {
        switch (level) {
            case OrderTrackConstants.ORDER_TRACK_LEVEL_ONE:
                return "一级";
            case OrderTrackConstants.ORDER_TRACK_LEVEL_TWO:
                return "二级";
            case OrderTrackConstants.ORDER_TRACK_LEVEL_THREE:
                return "三级";
            case OrderTrackConstants.ORDER_TRACK_LEVEL_FOUR:
                return "四级";
            default:
                return "";
        }
    }


    /**
     * 描述: 发起人 1员工 2工程师 3用户 4服务商 5系统
     *
     * @return java.util.List<com.zmn.common.dictionary.DictModel>
     * @author tanbiao
     * @since 2020/11/23
     **/
    public static List<DictModel> listOrderTrackOperator() {
        ArrayList<DictModel> arrayList = Lists.newArrayListWithExpectedSize(5);
        arrayList.add(new DictModel(OrderTrackConstants.ORDER_TRACK_OPERATOR_TYPE_STAFF, "员工"));
        arrayList.add(new DictModel(OrderTrackConstants.ORDER_TRACK_OPERATOR_TYPE_ENGINEER, "工程师"));
        arrayList.add(new DictModel(OrderTrackConstants.ORDER_TRACK_OPERATOR_TYPE_USER, "用户"));
        arrayList.add(new DictModel(OrderTrackConstants.ORDER_TRACK_OPERATOR_TYPE_SERVICE, "服务商"));
        arrayList.add(new DictModel(OrderTrackConstants.ORDER_TRACK_OPERATOR_TYPE_SYSTEM, "系统"));
        return arrayList;
    }

}
